/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package enterprise.ent;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author JAVIER
 */
@Entity
@Table(name = "administradores")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Administradores.findAll", query = "SELECT a FROM Administradores a"),
    @NamedQuery(name = "Administradores.findByAdminId", query = "SELECT a FROM Administradores a WHERE a.adminId = :adminId"),
    @NamedQuery(name = "Administradores.findByAdminNombre", query = "SELECT a FROM Administradores a WHERE a.adminNombre = :adminNombre"),
    @NamedQuery(name = "Administradores.findByAdminApellidos", query = "SELECT a FROM Administradores a WHERE a.adminApellidos = :adminApellidos"),
    @NamedQuery(name = "Administradores.findByAdminTelefono", query = "SELECT a FROM Administradores a WHERE a.adminTelefono = :adminTelefono"),
    @NamedQuery(name = "Administradores.findByAdminDireccion", query = "SELECT a FROM Administradores a WHERE a.adminDireccion = :adminDireccion"),
    @NamedQuery(name = "Administradores.findByAdminDireccion2", query = "SELECT a FROM Administradores a WHERE a.adminDireccion2 = :adminDireccion2"),
    @NamedQuery(name = "Administradores.findByAdminCpostal", query = "SELECT a FROM Administradores a WHERE a.adminCpostal = :adminCpostal"),
    @NamedQuery(name = "Administradores.findByAdminPais", query = "SELECT a FROM Administradores a WHERE a.adminPais = :adminPais"),
    @NamedQuery(name = "Administradores.findByAdminProvincia", query = "SELECT a FROM Administradores a WHERE a.adminProvincia = :adminProvincia"),
    @NamedQuery(name = "Administradores.findByAdminLocalidad", query = "SELECT a FROM Administradores a WHERE a.adminLocalidad = :adminLocalidad"),
    @NamedQuery(name = "Administradores.findByAdminUser", query = "SELECT a FROM Administradores a WHERE a.adminUser = :adminUser"),
    @NamedQuery(name = "Administradores.findByAdminAlta", query = "SELECT a FROM Administradores a WHERE a.adminAlta = :adminAlta"),
    @NamedQuery(name = "Administradores.findByAdminCargo", query = "SELECT a FROM Administradores a WHERE a.adminCargo = :adminCargo"),
    @NamedQuery(name = "Administradores.findByAdminOrganizacion", query = "SELECT a FROM Administradores a WHERE a.adminOrganizacion = :adminOrganizacion"),
    @NamedQuery(name = "Administradores.findByAdminEstado", query = "SELECT a FROM Administradores a WHERE a.adminEstado = :adminEstado"),
    @NamedQuery(name = "Administradores.findByAdminDni", query = "SELECT a FROM Administradores a WHERE a.adminDni = :adminDni")})
public class Administradores implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "admin_id")
    private Integer adminId;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 45)
    @Column(name = "admin_nombre")
    private String adminNombre;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 60)
    @Column(name = "admin_apellidos")
    private String adminApellidos;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 16)
    @Column(name = "admin_telefono")
    private String adminTelefono;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 60)
    @Column(name = "admin_direccion")
    private String adminDireccion;
    @Size(max = 60)
    @Column(name = "admin_direccion2")
    private String adminDireccion2;
    @Basic(optional = false)
    @NotNull
    @Column(name = "admin_cpostal")
    private String adminCpostal;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 30)
    @Column(name = "admin_pais")
    private String adminPais;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 45)
    @Column(name = "admin_provincia")
    private String adminProvincia;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 60)
    @Column(name = "admin_localidad")
    private String adminLocalidad;
    @Basic(optional = false)
    @NotNull
    @Column(name = "admin_user")
    private Long adminUser;
    @Column(name = "admin_alta")
    @Temporal(TemporalType.TIMESTAMP)
    private Date adminAlta;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 60)
    @Column(name = "admin_cargo")
    private String adminCargo;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 60)
    @Column(name = "admin_organizacion")
    private String adminOrganizacion;
    @Basic(optional = false)
    @NotNull
    @Column(name = "admin_estado")
    private int adminEstado;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 12)
    @Column(name = "admin_dni")
    private String adminDni;

    public Administradores() {
    }

    public Administradores(Integer adminId) {
        this.adminId = adminId;
    }

    public Administradores(Integer adminId, String adminNombre, String adminApellidos, String adminTelefono, String adminDireccion, String adminCpostal, String adminPais, String adminProvincia, String adminLocalidad, Long adminUser, String adminCargo, String adminOrganizacion, int adminEstado, String adminDni) {
        this.adminId = adminId;
        this.adminNombre = adminNombre;
        this.adminApellidos = adminApellidos;
        this.adminTelefono = adminTelefono;
        this.adminDireccion = adminDireccion;
        this.adminCpostal = adminCpostal;
        this.adminPais = adminPais;
        this.adminProvincia = adminProvincia;
        this.adminLocalidad = adminLocalidad;
        this.adminUser = adminUser;
        this.adminCargo = adminCargo;
        this.adminOrganizacion = adminOrganizacion;
        this.adminEstado = adminEstado;
        this.adminDni = adminDni;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public String getAdminNombre() {
        return adminNombre;
    }

    public void setAdminNombre(String adminNombre) {
        this.adminNombre = adminNombre;
    }

    public String getAdminApellidos() {
        return adminApellidos;
    }

    public void setAdminApellidos(String adminApellidos) {
        this.adminApellidos = adminApellidos;
    }

    public String getAdminTelefono() {
        return adminTelefono;
    }

    public void setAdminTelefono(String adminTelefono) {
        this.adminTelefono = adminTelefono;
    }

    public String getAdminDireccion() {
        return adminDireccion;
    }

    public void setAdminDireccion(String adminDireccion) {
        this.adminDireccion = adminDireccion;
    }

    public String getAdminDireccion2() {
        return adminDireccion2;
    }

    public void setAdminDireccion2(String adminDireccion2) {
        this.adminDireccion2 = adminDireccion2;
    }

    public String getAdminCpostal() {
        return adminCpostal;
    }

    public void setAdminCpostal(String adminCpostal) {
        this.adminCpostal = adminCpostal;
    }

    public String getAdminPais() {
        return adminPais;
    }

    public void setAdminPais(String adminPais) {
        this.adminPais = adminPais;
    }

    public String getAdminProvincia() {
        return adminProvincia;
    }

    public void setAdminProvincia(String adminProvincia) {
        this.adminProvincia = adminProvincia;
    }

    public String getAdminLocalidad() {
        return adminLocalidad;
    }

    public void setAdminLocalidad(String adminLocalidad) {
        this.adminLocalidad = adminLocalidad;
    }

    public Long getAdminUser() {
        return adminUser;
    }

    public void setAdminUser(Long adminUser) {
        this.adminUser = adminUser;
    }

    public Date getAdminAlta() {
        return adminAlta;
    }

    public void setAdminAlta(Date adminAlta) {
        this.adminAlta = adminAlta;
    }

    public String getAdminCargo() {
        return adminCargo;
    }

    public void setAdminCargo(String adminCargo) {
        this.adminCargo = adminCargo;
    }

    public String getAdminOrganizacion() {
        return adminOrganizacion;
    }

    public void setAdminOrganizacion(String adminOrganizacion) {
        this.adminOrganizacion = adminOrganizacion;
    }

    public int getAdminEstado() {
        return adminEstado;
    }

    public void setAdminEstado(int adminEstado) {
        this.adminEstado = adminEstado;
    }

    public String getAdminDni() {
        return adminDni;
    }

    public void setAdminDni(String adminDni) {
        this.adminDni = adminDni;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (adminId != null ? adminId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Administradores)) {
            return false;
        }
        Administradores other = (Administradores) object;
        if ((this.adminId == null && other.adminId != null) || (this.adminId != null && !this.adminId.equals(other.adminId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "enterprise.ent.Administradores[ adminId=" + adminId + " ]";
    }
    
}
